package main.java.com.suncuicui.bi.BuilderPattern.service.vo;

import main.java.com.suncuicui.bi.BuilderPattern.service.impl.ChickenBurger;
import main.java.com.suncuicui.bi.BuilderPattern.service.impl.Coke;
import main.java.com.suncuicui.bi.BuilderPattern.service.impl.Pepsi;
import main.java.com.suncuicui.bi.BuilderPattern.service.impl.VegBurger;

/**
 * Created by suncuicui on 2018/11/29.
 */
public class MealBuilder {

    public Meal prepareVegMeal (){
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    public Meal prepareNonVegMeal (){
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }

    public Meal prepareHanbgur(){
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        return meal;
    }
}
